<template>
	<view class="setting" :style="{minHeight: wHeight + 'px' }">
		<view class="center-list " >
			<view class="center-list-item border-bottom" @click="password">
				<text class="list-icon">
					<image src="/static/images/mimasuo.png"></image>
				</text>
				<text class="list-text">修改密码</text>
				<text class="list-min">修改APP登录密码</text>
				<text class="list-blu">
					<image src="../../static/images/pass.png"></image>
				</text>
			</view>
			<view class="center-list-item border-bottom" @click="passname">
				<text class="list-icon">
					<image src="/static/images/nichen.png"></image>
				</text>
				<text class="list-text">修改昵称</text>
				<text class="list-blu">
					<image src="../../static/images/pass.png"></image>
				</text>
			</view>
			<view class="center-list-item border-bottom">
				<text class="list-icon">
					<image src="/static/images/huancun.png"></image>
				</text>
				<text class="list-text">清理缓存</text>
				<text class="list-min">APP缓存一键清空</text>
				<text class="list-blu">
					<image src="../../static/images/pass.png"></image>
				</text>
			</view>
			<view class="center-list-item border-bottom" @click="privacy">
				<text class="list-icon">
					<image src="/static/images/zhence.png"></image>
				</text>
				<text class="list-text">隐私政策</text>
				<text class="list-min"></text>
				<text class="list-blu">
					<image src="../../static/images/pass.png"></image>
				</text>
			</view>
			<view class="center-list-item border-bottom" @click="destroy">
				<text class="list-icon">
					<image src="/static/images/zhuxiao.png"></image>
				</text>
				<text class="list-text">注销账号</text>
				<text class="list-blu">
					<image src="../../static/images/pass.png"></image>
				</text>
			</view>
			<view class="center-list-item border-bottom">
				<text class="list-icon">
					<image src="/static/images/dangqian.png"></image>
				</text>
				<text class="list-text">当前版本</text>
				<text class="list-min">{{ config.versions }}</text>
				<text class="list-blu">
					<image src="../../static/images/pass.png"></image>
				</text>
			</view>
		</view>
		<!-- <view class="bom"></view> -->
		<view class="setting-tui ">
			<text>退出登录</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				wHeight: ''
			}
		},
		onLoad() {
			this.wHeight = this.$store.state.ContentHeight-45;
		},
		methods:{
			password(){
				uni.navigateTo({
					url:'/pages/setting/password'
				});
			},
			passname(){
				uni.navigateTo({
					url:'/pages/setting/passname'
				});
			},
			destroy(){
				uni.navigateTo({
					url:'/pages/setting/destroy'
				});
			},
			privacy(){
				uni.navigateTo({
					url:'/pages/my/privacy'
				});
			},
		}
	}
</script>

<style lang="less" scoped>
	/* 设置 */
	.setting{
		background-color: #F6F5F5;
	}
	.center-list {
		background-color: #ffffff;
		margin-right: 30rpx;
		width: 750rpx;
		flex-direction: column;
		padding-left: 20rpx;
		border-bottom: 1px solid #D2D2D2;
	}

	.center-list-item {
		width: 730rpx;
		height: 90rpx;
		line-height: 90rpx;
		box-sizing: border-box;
		flex-direction: row;
		padding: 0rpx 20rpx;
		position: relative;
		&:last-child{
			border-bottom: none
		}
	}

	.border-bottom {
		border-bottom: 1px solid #D2D2D2;
	}
	.bom{
		border-top: 1rpx solid #D2D2D2;
	}

	.border-top {
		border-top: 3rpx solid #c8c7cc;
		border-bottom: 3rpx solid #c8c7cc;
	}

	.list-icon {
		line-height: 90rpx;
		font-family: texticons;
		margin-right: 30rpx;
	}

	.list-icon image {
		width: 32rpx;
		height: 34rpx;
		top: 6rpx
	}   

	.list-text {
		height: 29rpx;
		font-size: 29rpx;
		color: #000000;
		position: absolute;
		// margin-top: 20rpx;	
	}

	.list-min {
		float: right;
		width: auto;
		height: 25rpx;
		font-size: 24rpx;
		color: #999999;
		margin-right: 40rpx;
	}

	.list-blu image {
		width: 13rpx;
		height: 24rpx;
		position: absolute;
		right: 30rpx;
		margin-top: 34rpx;
	}
	.setting-tui{
		width: 700rpx;
		height: 100rpx;
		line-height: 100rpx;
		background: #99C1FF;
		border-radius: 10rpx;
		margin: 0 auto;
		text-align: center;
		margin-top: 30rpx;
	}
	.setting-tui text{
		line-height: 100rpx;
		font-size: 36rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #FFFFFF;
		display: block;
		margin: 0 auto;
	}
</style>
